home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / MBUF.H < prev    next >
C/C++ Source or Header  |  1990-03-13  |  679b  |  20 lines

  1. /* Basic message buffer structure */
  2. struct mbuf {
  3.     struct mbuf *next;    /* Links mbufs belonging to single packets */
  4.     struct mbuf *anext;    /* Links packets on queues */
  5.     int16 size;        /* Size of associated data buffer */
  6.     char *data;        /* Active working pointers */
  7.     int16 cnt;
  8. };
  9. #define    NULLBUF    (struct mbuf *)0
  10. #define    NULLBUFP (struct mbuf **)0
  11. void enqueue(),hex_dump(),ascii_dump(),append();
  12. struct mbuf *alloc_mbuf(),*free_mbuf(),*dequeue(),*copy_p(),*free_p(),
  13.     *pushdown(),*qdata(),*qstring(),*pullline();
  14. int16 pullup(),dup_p(),len_mbuf(),dqdata(),len_q();
  15. int32 pull32();
  16. int16 pull16();
  17. char pullchar();
  18. #define    AUDIT(bp)    audit(bp,__FILE__,__LINE__)
  19.  
  20.